package com.jimikongjian.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by fuxiuyang on 17/3/31.
 */
@RestController
public class Demo {

    @RequestMapping(value = "/demo", method = RequestMethod.GET)
    @ResponseBody
    public String sayHello(){
        return "Hello World!";
    }
}
